#!/usr/bin/env bash

URL=$1

for (( i = 0; i < 99; i++ )); do
  axel --timeout=3600 -avn5 --output=${URL##*/} ${URL}
  if [[ $? == 0 ]]; then
    exit 0
  fi
done
